class HBridge:
    @ld
    def __init__(self,p0,p1, freq=1024, duty=0):pass

    def __call__(self,value=0):
        if value>0:
            self.p1(0)
            if abs(value)>1023:
                value=1023
            self.p0( abs(value))
            return
        if value<0:
            self.p0(0)
            if abs(value)>1023:
                value=1023
            self.p1( abs(value) )
            return

        self.p0(0)

        self.p1(0)
